package com.hu.pk.patroller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;


@Data
@ApiModel("登录参数")
public class PatrollerrDto {
    @ApiModelProperty("手机号")
    @NotBlank(message ="手机号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message ="请输入正确手机号码" )
    private String telephone;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
